package com.atguigu.gmall.user.service;


import com.atguigu.gmall.model.user.UserInfo;
import com.atguigu.gmall.model.vo.user.LoginUserResponseVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface UserInfoService extends IService<UserInfo> {

    LoginUserResponseVo login(UserInfo userInfo);

    String generateToken(UserInfo userInfo);

    void logout(String token);  // 退出登录

    LoginUserResponseVo register(UserInfo userInfo);  // 注册
}
